package project.background.service;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import fld.background.entity.Role;
import fld.background.system.service.impl.BaseServiceImpl;

@Service
public class BgRoleService extends BaseServiceImpl<Role,Long>{
	
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
	/**
	 * 查询全部
	 * @param tmap
	 * @return
	 * @author yc
	 * @date 2018年12月8日
	 */
	public List<Map<String,Object>> queryCompanyRoles(Map<String,Object> tmap) {
		List<Map<String,Object>> rows = new ArrayList<Map<String,Object>>();
		Map<String,Object> m1 = new HashMap<String,Object>();
		m1.put("code", 13);
		m1.put("text", "管理员");
		rows.add(m1);
		Map<String,Object> m2 = new HashMap<String,Object>();
		m2.put("code", 14);
		m2.put("text", "普通用户");
		rows.add(m2);
		return rows;
	}
	
}
